import React from 'react'

class LikesButton extends React.Component {
    constructor(props) {
        super(props)
        this.state = {
            likes: 0
        }
    }
    
    increaseLikes() {
        this.setState({
            likes: this.state.likes + 1
        })

    }
    render() {
        return (
            <div className="likes-button" onClick={() => this.increaseLikes()}> 👍 { this.state.likes } </div>
        )

    }

}

export default LikesButton